<%-- 
    Document   : db
    Created on : Jan 23, 2013, 7:00:16 PM
    Author     : jasmine
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" import="java.sql.*"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
        <%
        try{
            
            Class.forName("com.mysql.jdbc.Driver");
            Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/photo", "root", "");
             ps = con.prepareStatement("INSERT INTO pictures VALUES(?,?)");
        }
        catch(Exception e){}
        %>
    </body>
</html>
